import request from '@/utils/request';

// 折扣
export const Discount = (pricePercent: number, isDiscount: boolean) => {
  return request({
    url: '/activity/discount',
    method: 'post',
    data: { 
      pricePercent,
      isDiscount: isDiscount ? 1 : 0 // 将布尔值转换为 1 或 0
    }
  });
};